1 #
If _MyType
<> "Empty" Then
5 ''' Module used to define the properties that are available in the My Namespace for Web projects.
7 ''' <remarks></remarks>
8 <Global.Microsoft
.VisualBasic
.HideModuleName()> _
10 Private s_Computer
As New ThreadSafeObjectProvider(Of
Global.Microsoft
.VisualBasic
.Devices
.ServerComputer
)
11 Private s_User
As New ThreadSafeObjectProvider(Of
Global.Microsoft
.VisualBasic
.ApplicationServices
.WebUser
)
12 Private s_Log
As New ThreadSafeObjectProvider(Of
Global.Microsoft
.VisualBasic
.Logging
.AspLog
)
14 ''' Returns information about the host computer.
16 <Global.System
.Diagnostics
.CodeAnalysis
.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")> _
17 Friend ReadOnly
Property Computer() As Global.Microsoft
.VisualBasic
.Devices
.ServerComputer
19 Return s_Computer
.GetInstance()
23 ''' Returns information for the current Web user.
25 <Global.System
.Diagnostics
.CodeAnalysis
.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")> _
26 Friend ReadOnly
Property User() As Global.Microsoft
.VisualBasic
.ApplicationServices
.WebUser
28 Return s_User
.GetInstance()
32 ''' Returns Request object.
34 <Global.System
.Diagnostics
.CodeAnalysis
.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")> _
35 <Global.System
.ComponentModel
.Design
.HelpKeyword("My.Request")> _
36 Friend ReadOnly
Property Request() As Global.System
.Web
.HttpRequest
37 <Global.System
.Diagnostics
.DebuggerHidden()> _
39 Dim CurrentContext
As Global.System
.Web
.HttpContext
= Global.System
.Web
.HttpContext
.Current
40 If CurrentContext IsNot
Nothing Then
41 Return CurrentContext
.Request
47 ''' Returns Response object.
49 <Global.System
.Diagnostics
.CodeAnalysis
.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")> _
50 <Global.System
.ComponentModel
.Design
.HelpKeyword("My.Response")> _
51 Friend ReadOnly
Property Response() As Global.System
.Web
.HttpResponse
52 <Global.System
.Diagnostics
.DebuggerHidden()> _
54 Dim CurrentContext
As Global.System
.Web
.HttpContext
= Global.System
.Web
.HttpContext
.Current
55 If CurrentContext IsNot
Nothing Then
56 Return CurrentContext
.Response
62 ''' Returns the Asp log object.
64 <Global.System
.Diagnostics
.CodeAnalysis
.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")> _
65 Friend ReadOnly
Property Log() As Global.Microsoft
.VisualBasic
.Logging
.AspLog
67 Return s_Log
.GetInstance()